/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2019-12-15 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 列表查询
export const getList = (params) => axios.post(`${SERVER.RETAIL}/dlrProductGroup/queryList`, params)
// 详情查询
export const getDetail = (params) => axios.get(`${SERVER.RETAIL}/dlrProductGroup/findById`, {params})
// 保存
export const postSave = (params) => axios.post(`${SERVER.RETAIL}/dlrProductGroup/saveDlrProduct`, params)
// 查询所有员工
export const getDealerUser = params => axios.get(`${SERVER.DMSCLOUD_BASEDATA}/basedata/users/getDealerUser`);
//  导出
export const exportList = (params) => axios.post(`${SERVER.RETAIL}/dlrProductGroup/export`, params, { responseType: 'blob' })

// / 导出
export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);
